import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import './styles.scss';
import "./assets/reset.css";
// 指令定义
import lazyload from "./plugins/lazyload";
Vue.directive("lazy",lazyload);
// 注册全局组件
import list from "./components/list";
Vue.component("list",list);

// 定义公共方法
import ajax from "./plugins/ajax";
Vue.prototype.$ajax=ajax;

Vue.use(ElementUI)

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
